/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.basic.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author ly
* @date 2025-04-22
**/
@Data
@TableName("basic_ac02")
public class BasicAc02 implements Serializable {

    @ApiModelProperty(value = "参保关系id")
    private String aaz159;

    @ApiModelProperty(value = "个人编号")
    private String aac001;

    @ApiModelProperty(value = "单位编号")
    private String aab001;

    @ApiModelProperty(value = "建账年月")
    private Date aae206;

    @ApiModelProperty(value = "参保日期")
    private Date aac030;

    @ApiModelProperty(value = "参保状态")
    private String aac008;

    @ApiModelProperty(value = "缴费状态")
    private String aac031;

//    @NotBlank
    @ApiModelProperty(value = "参保险种")
    private String aae140;

    @ApiModelProperty(value = "工资")
    private BigDecimal aac040;

    @ApiModelProperty(value = "缴费开始年月")
    private Date aae041;

    @ApiModelProperty(value = "缴费截止年月")
    private Date aae042;

    @ApiModelProperty(value = "首次参保年月")
    private Date aac049;

    @ApiModelProperty(value = "经办机构")
    private String aab359;

    @ApiModelProperty(value = "参保身份")
    private String aac066;

    @ApiModelProperty(value = "备注")
    private String aae013;
    @ApiModelProperty(value = "经办人")
    private String aae011;
    @ApiModelProperty(value = "经办时间")
    private String aae036;
    @TableField(exist = false)
    @ApiModelProperty(value = "单位名称")
    private String aab004;

    public void copy(BasicAc02 source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
